<?php

namespace app\api\controller;

use think\Controller;

class Content extends Controller
{
    //联系我们
    public function content()
    {
        $content = model('common/Content')
            -> where('status',1)
            -> field('campus,website,phone,email,address,jwd')
            -> select();
        if ($content){
            return json(['code'=>100,'msg'=>'请求成功！','data'=>$content]);
        } else {
            return json(['code'=>404,'msg'=>'请求失败！']);
        }
    }
}
